/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_0.data_model.actions;

import ia_0.data_model.character.Character;
import ia_0.data_model.character.POI;
import ia_0.*;

/**
 *
 * @author jderenty
 */
public class ActionNourrir extends Action{


    public ActionNourrir(Character c){
        super(c);
    }

    public boolean toDo() {
        boolean finded=false;
        if(c.knowledge.getPoi(POI.TypePOI.animalDome)!=null)
            finded=true;
        return finded;
    }

    @Override
    public void doIt() {
        setCommence();
        if(m==null){
            m=new Move(c, c.knowledge.getPoi(POI.TypePOI.animalDome).position);
        }

        if(m.iterate().equals(m.dest)){
            m=null;
        }
        
    }

}
